package com.bdqn.crm.controller;
import com.bdqn.crm.service.RoleService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class RightController {
    @Resource
    private RoleService roleService;
    @RequestMapping(value = "/reload")
    public String reload(){//刷新权限
        roleService.reloadFilterChainDefinitions();
        return "redirect:/main";
    }
}
